@layout("/common/_form.html",{js:["/assets/redline/redline_add.js"],css:["/assets/expand/module/formSelects/formSelects-v4.css"],plugins:["ue"]}){
<style>
    .layui-upload-img {
        height: 100px;
        width: 100px;
        object-fit: contain;
        background-color: #dddddd;
    }
</style>
<form class="layui-form" id="redlineForm" lay-filter="redlineForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>

                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">描述<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="ms" name="ms" placeholder="请输入描述" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">联系电话<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="phone" name="phone" placeholder="请输入联系电话" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">标签<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="tags" name="tags" placeholder="请输入标签" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">价格<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="jiage" name="jiage" placeholder="请输入价格" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">主图<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="mianPic" name="mianPic" type="hidden" class="layui-input" lay-verify="required"/>
                            <div class="layui-upload">
                                <button type="button" class="layui-btn" id="mainpic">图片上传</button>
                                <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                    预览图：
                                    <div class="layui-upload-list" id="mainpicview"></div>
                                </blockquote>
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">轮播图<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="pics" name="pics" type="hidden" class="layui-input" lay-verify="required"/>
                            <div class="layui-upload">
                                <button type="button" class="layui-btn" id="picsbtn">多图上传</button>
                                <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                    预览图：
                                    <div class="layui-upload-list" id="picsview"></div>
                                </blockquote>
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">产品介绍<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <script id="jieshao" name="jieshao" type="text/plain"></script>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">购买须知<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <script id="xuzhi" name="xuzhi" type="text/plain"></script>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" id="cancel">&emsp;取消&emsp;</button>
    </div>

</form>

@}